package com.scau402.system.mapper;

import java.util.List;
import java.util.Map;

import com.scau402.system.domain.WmsInboundOrder;

/**
 * 商品入库单Mapper接口
 * 
 * @author ruoyi
 * @date 2023-06-26
 */
public interface WmsInboundOrderMapper 
{
    /**
     * 查询商品入库单
     * 
     * @param id 商品入库单主键
     * @return 商品入库单
     */
    public WmsInboundOrder selectWmsInboundOrderById(Long id);

    /**
     * 查询商品入库单列表
     * 
     * @param wmsInboundOrder 商品入库单
     * @return 商品入库单集合
     */
    public List<WmsInboundOrder> selectWmsInboundOrderList(WmsInboundOrder wmsInboundOrder);

    /**
     * 新增商品入库单
     * 
     * @param wmsInboundOrder 商品入库单
     * @return 结果
     */
    public int insertWmsInboundOrder(WmsInboundOrder wmsInboundOrder);

    /**
     * 修改商品入库单
     * 
     * @param wmsInboundOrder 商品入库单
     * @return 结果
     */
    public int updateWmsInboundOrder(WmsInboundOrder wmsInboundOrder);

    /**
     * 删除商品入库单
     * 
     * @param id 商品入库单主键
     * @return 结果
     */
    public int deleteWmsInboundOrderById(Long id);

    /**
     * 批量删除商品入库单
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteWmsInboundOrderByIds(Long[] ids);

    public String getMaxCode(Map<String, Object> params);

    public Long selectWmsInboundOrderIdByOrderCode(String newOrderCode);

    public WmsInboundOrder selectWmsInboundOrderByOrderCode(String orderCode);

    public int checkExists(WmsInboundOrder wmsInboundOrder);

    public String getInboundTypeName(Long inboundId);
}
